package bbs.entity.enums;

public enum FollowStatsEnum {

    FOLLOWING(1, "已关注"),
    NOT_FOLLOWING(0, "未关注");

    private Integer type;
    private String desc;

    private FollowStatsEnum(Integer type, String desc) {
        this.type = type;
        this.desc = desc;
    }
    public Integer getType() {
        return type;
    }
    public String getDesc() {
        return desc;
    }
    public static FollowStatsEnum getEnum(Integer type) {
        for (FollowStatsEnum e : FollowStatsEnum.values()) {
            if (e.getType().equals(type)) {
                return e;
            }
        }
        return null;
    }
}
